/*
 * Creation : 27/09/2013
 */
/**
 * 
 */
package com.japcatalog.service;

import java.util.Collection;

import com.japcatalog.model.Model;

/**
 * The Interface ModelService.
 *
 * @author Fernando Ariel Perelli
 */
public interface ModelService {

	/**
	 * Find by id.
	 *
	 * @param id the id
	 * @return the model
	 */
	public Model findById(Long id);

	/**
	 * Find all.
	 *
	 * @return the collection
	 */
	public Collection<Model> findALL();

	/**
	 * Creates the.
	 *
	 * @param model the model
	 * @return the long
	 */
	public Long create(Model model);

	/**
	 * Update.
	 *
	 * @param model the model
	 */
	public void update(Model model);

	/**
	 * Delete.
	 *
	 * @param model the model
	 */
	public void delete(Model model);

	/**
	 * Delete.
	 *
	 * @param id the id
	 */
	public void delete(Long id);
}
